﻿using OT.HikiSecureCenterApis.Req;

namespace OT.HikiSecureCenterApis.Res
{
    public class ResPageData<T> : ReqPage
    {
        /// <summary>
        /// 总数
        /// </summary>
        public long total { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public long totalPage { get; set; }
        /// <summary>
        /// 具体数据
        /// </summary>
        public IList<T> list { get; set; }
    }

    public class ResTurnPage<T>
    {
        /// <summary>
        /// 总数
        /// </summary>
        public long total { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public long totalPage { get; set; }
        /// <summary>
        /// 页码，用作查询一般都是必填项
        /// 当前页码需大于0（pageNo>0）
        /// </summary>
        public long page { get; set; }
        /// <summary>
        /// 页行数，用作查询一般都是必填项
        /// 分页大小；0<pageSize≤1000
        /// </summary>
        public long pageSize { get; set; }
        /// <summary>
        /// 是否为第一页
        /// </summary>
        public bool firstPage { get; set; }
        /// <summary>
        /// 是否为最后一页
        /// </summary>
        public bool lastPage { get; set; }
        /// <summary>
        /// 是否有上一页
        /// </summary>
        public bool hasPreviousPage { get; set; }
        /// <summary>
        /// 是否有下一页
        /// </summary>
        public bool hasNextPage { get; set; }
        /// <summary>
        /// 具体数据
        /// </summary>
        public IList<T> rows { get; set; }
    }
}
